<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" />
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css" />
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script language="JavaScript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script language="JavaScript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script language="JavaScript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script language="JavaScript" src="${ctx}/static/scripts/set_select.js"></script>
	<script language="JavaScript" src="${ctx}/static/scripts/common.js"></script>
	<script language="javascript"src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
	<style>
		.message {
		    width: 80px;
		    background: rgb(241, 241, 241);
		    text-align: right;
		    padding-right: 5px;
		}
		.equDiv .message {
		    width: 80px;
		    background: rgb(241, 241, 241);
		    text-align: center;
		    padding: 5px;
		}
	</style>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="em" value="<span>*</span>"></c:set>
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:set var="noChange" value=""></c:set>
  		<c:set var="isImportant" value="true"></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  			<c:set var="em" value=""></c:set>
  			<c:set var="isImportant" value=""></c:set>
  		</c:if>
  		<c:if test="${not empty role.user_id}">
	  		<c:set var="noChange" value="disabled"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/buyTicket/save" method="post">
  			<input type="hidden" value="${obj.buy_id}" id="buyId" name="p_buyId" />
  			<div class="box">
  				<div>
  					<label style="font-size: 16px;font-weight: 700;">采购申请单</label>
  				</div>
	  			<table cellspacing="0" cellpadding="0">
	  				<tbody>
						<tr>
							<td class="message">
								<p>序号：</p>
							</td>
							<td colspan="1">
								<input type="text" value="${obj.log_code }"
									class="wd170" disabled style="width: 100%;"  />
							</td>
							<td class="message">
								<p>编号：</p>
							</td>
							<td colspan="1">
								<input type="text" value="${obj.buy_code }"
									class="wd170" disabled style="width: 100%;"  />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>供应商名称：</p>
							</td>
							<td colspan="1">
								<input type="text" value="${obj.supplier }"
									class="wd170 " disabled maxLength="32" style="width: 100%;" />
							</td>
							<td class="message">
								<p>付款金额：</p>
							</td>
							<td colspan="1">
								<input type="text" value="${obj.supplier_addr }"
									class="wd170 " disabled maxLength="64" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>取票日期：</p>
							</td>
							<td colspan="1">
								<input type="text" id="backBillDate" name="p_backBillDate" value="<fmt:formatDate value="${obj.back_bill_date }" pattern="yyyy-MM-dd"/>"
									class="Wdate wd170" ${disabled } style="width: 100%;" onFocus="WdatePicker()" />
							</td>
							<td class="message">
								<p>回票方式：</p>
							</td>
							<td colspan="1">
								<vvise:select id="backBillType" name="p_backBillType" sqlname="getCodeData" className="wd170" width="99%"
									default="false" sqlparam="bill_type" ifSelect="${ifSelect}" defval="${obj.back_bill_type }" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>快递单号：</p>
							</td>
							<td colspan="1">
								<input type="text" id="orderCode" name="p_orderCode" value="${obj.order_code }"
									class="wd170 " ${disabled } maxLength="32" style="width: 100%;" />
							</td>
							<td class="message">
								<p>回票备注：</p>
							</td>
							<td colspan="1">
								<input type="text" id="backBillRemark" name="p_backBillRemark" value="${obj.back_bill_remark }"
									class="wd170 " ${disabled } maxLength="128" style="width: 100%;" />
							</td>
						</tr>
					</tbody>	
	  			</table>
	  		</div>
        </form>
        <script type="text/javascript">
        	
        </script>
  </body>
</html>